FROM openjdk:17
ADD _APP_FA_.jar /home/app/_APP_FA_.jar
ENV JAVA_OPTS="-ms512m -mx512m -Xmn256m -Djava.awt.headless=true -Duser.timezone=\"Asia\/Shanghai\""
ENV APP_NAME ="_DIR_/_APP_FA_.jar"
RUN export TZ="Asia/Shanghai"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["sh","-c","exec java $JAVA_OPTS -jar home/app/_APP_FA_.jar"]